package com.tanqidi.arcgisandroid.di

import com.tanqidi.arcgisandroid.data.featureServer.remote.RemoteArcgisSource
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit

/**
 * 资源库依赖
 */
@Module
@InstallIn(SingletonComponent::class)
object DataModule {


    /**
     * 远程获取arcgis server信息
     */
    @Provides
    fun remoteArcgisSource(retrofit: Retrofit): RemoteArcgisSource {
        return retrofit.create(RemoteArcgisSource::class.java)
    }
}